<%-- 
    Document   : emp_history_tab
    Created on : Dec 18, 2013, 11:53:14 PM
    Author     : zraj
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<!-- แท็กหลัก -->
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!-- แท็กจัดรูปแบบ -->
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!-- ฟังก์ชัน -->
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <style type="text/css">
            table.gridtable {
                font-family: verdana,arial,sans-serif;
                font-size:11px;
                color:#333333;
                border-width: 1px;
                border-color: #666666;
                border-collapse: collapse;
            }
            table.gridtable th {
                border-width: 1px;
                padding: 8px;
                border-style: solid;
                border-color: #666666;
                background-color: #dedede;
            }
            table.gridtable td {
                border-width: 1px;
                padding: 8px;
                border-style: solid;
                border-color: #666666;
                background-color: #ffffff;
            }
        </style>
    </head>
    <body>
        <s:if test="%{ history.size() > 0}">

            <table class="gridtable">
                  <tr>
                    <th>รายการแก้ไข</th><th>รายละเอียด</th><th>แก้ไขโดย</th><th>เวลา</th>
                 </tr>
                 <c:forEach items="${history}" var="his" varStatus="status">
               
                   <tr>
                    <td> ${his.name}</td><td>${his.historyMsg}</td><td>${his.changeBy}</td>
                    <td><fmt:formatDate pattern="dd-MM-yyyy HH:mm:ss" 
            value="${his.changeOn}" /></td>
                   </tr>
                </c:forEach>
                
              
               
            </table>

           
        </s:if>
        <s:if test="%{ history.size() <= 0}"> <p>ไม่มีประวัติการแก้ไขข้อมูล</p> </s:if>

    </body>
</html>
